.TH std::regex_error::regex_error 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::regex_error::regex_error \- std::regex_error::regex_error

.SH Synopsis
   Defined in header <regex>
   regex_error( std::regex_constants::error_type ecode ); \fB(1)\fP \fI(since C++11)\fP
   regex_error( const regex_error& other );               \fB(2)\fP \fI(since C++11)\fP

   1) Constructs a regex_error with a given ecode of type
   std::regex_constants::error_type.
   2) Copy constructor. Initializes the contents with those of other. If *this and
   other both have dynamic type std::regex_error then std::strcmp(what(), other.what())
   == 0.

.SH Parameters

   ecode - error code indicating the error raised in regular expression parsing
   other - another regex_error object to copy

.SH See also

   error_type describes different types of matching errors
   \fI(C++11)\fP    \fI(typedef)\fP
